package zhtest;

import com.cib.process.chat.bean.QueryResult;
import com.cib.process.chat.service.parser.QueryResultParser;

public class TestActionExtract {
    public static void main(String[] args) {
        String SMS="@SMS@";
        String suggestAnswer="@SMS@您当月消费10元@SMS@";
        int i = suggestAnswer.indexOf(SMS);
        int j = suggestAnswer.lastIndexOf(SMS);
        System.out.println(i);
        System.out.println(j);
        String substring = suggestAnswer.substring(suggestAnswer.indexOf(SMS), suggestAnswer.lastIndexOf(SMS));
        substring=substring.replace(SMS,"");
        System.out.println(substring);
    }
}
